package san.java.day14;

public class Dog extends Animal {

    private final String species = "狗";
    private String name;
    private int age;

    public String test = "";
    public static String testStatic = "static";

    public Dog() {
        this.name = "test";
        this.age = 0;
    }

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getSpecies() {
        return species;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public final void eat() {
        System.out.println("狗吃屎");
    }

    @Override
    public final void move() {
        System.out.println("狗腿子跑");
    }

    public void showInfo() {
        System.out.println("我是狗");
    }

    @Override
    public void bark() {
        System.out.println("狗叫");
    }
}
